/*
 * @Author: your name
 * @Date: 2021-03-15 22:28:45
 * @LastEditTime: 2021-03-15 22:36:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \demo-tsx\src\components\icon\index.tsx
 */

import { createFromIconfontCN } from '@ant-design/icons-vue';
import { defineComponent } from 'vue';
const YanIcon = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_1940846_dysacy3kz7.js',
});
export default defineComponent({
  name: 'YanIcon',
  props: {
    icon: {
      type: String,
      default: '',
    },
  },
  setup(props) {
    const { icon } = props;
    return () => <YanIcon type={icon} class="text-24"></YanIcon>;
  },
});
